strcpy(szBuffer,"Common dialog box function failed to\n find specified resource.");
break;
case CDERR_INITIALIZATION:
strcpy(szBuffer,"Common dialog box function\n failed during initialization.");
break;
case CDERR_LOCKRESFAILURE:
strcpy(szBuffer,"Common dialog box function failed to\nlock a specified resource.");
break;
case CDERR_LOADRESFAILURE:
strcpy(szBuffer,"Common dialog box function failed to\nload a specified resource.");
break;
case CDERR_LOADSTRFAILURE:
strcpy(szBuffer,"Common dialog box function failed to\nload a specified string.");
break;
case CDERR_MEMALLOCFAILURE:
strcpy(szBuffer,"Common dialog box function was unable to\nallocate memory for internal datastructures.");
break;
case CDERR_MEMLOCKFAILURE:
strcpy(szBuffer,"Common dialog box function was unable to\nlock the memory associated with a handle.");
break;
case CDERR_NOHINSTANCE:
strcpy(szBuffer,"ENABLETEMPLATE flag was set in the Flags member\nof the common dialog box but\nthat the application failed to provide a corresponding instance handle.");
break;
case CDERR_NOHOOK:
strcpy(szBuffer,"ENABLEHOOK flag was set in the Flags member\nof the common dialog box but that\nthe application failed to provide a pointer to a corresponding hook function.");
break;
case CDERR_NOTEMPLATE:
strcpy(szBuffer,"ENABLETEMPLATE flag was set in the Flags member\nof the common dialog box but that\nthe application failed to provide a corresponding template.");
break;
case CDERR_REGISTERMSGFAIL:
strcpy(szBuffer, "RegisterWindowMessage function returned\nan error value forthe common dialog box function.");
break;
case CDERR_STRUCTSIZE:
strcpy(szBuffer, "Invalid lStructSize of the common dialog box.");
break;
case FNERR_BUFFERTOOSMALL:
strcpy(szBuffer, "Buffer to which the lpstrFile of\nthe common dialog box function points is too small.");
break;
case FNERR_INVALIDFILENAME:
strcpy(szBuffer, "Invalid filename.");
break;
case FNERR_SUBCLASSFAILURE:
strcpy(szBuffer, "An attempt to subclass a list box\nfailed due to insufficient memory.");
break;
case FRERR_BUFFERLENGTHZERO:
strcpy(szBuffer, "A member in a data structure for\nthe common dialog box points to an invalid buffer.");